package org.blogwu.learn.multithread.case1;

import java.util.concurrent.locks.LockSupport;

public class ParkTest {
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            try {
                Thread.sleep(5000);
                LockSupport.park();
                System.out.println("over");
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        });
        t1.start();
//        LockSupport.unpark(  t1 );
        System.out.println("main over");
    }
}
